home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 1999 August
/
SGI Freeware 1999 August.iso
/
dist
/
fw_gnome-python.idb
/
usr
/
freeware
/
lib
/
python1.5
/
site-packages
/
gnome
/
file.py.z
/
file.py
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
1999-07-16
|
353 b
|
11 lines
import _gnome, gnome
if not gnome.gnomelib_init_called:
_gnome.gnomelib_init(gnome.app_id, gnome.app_version)
gnome.gnomelib_init_called = 1
def convert_stream(fd, fromtype, totype):
return _gnome.gnome_file_convert_stream(fd, fromtype, totype)
def convert(filename, fromtype, totype):
return _gnome.gnome_file_convert(filename, fromtype, totype)